package com.cinc.mdm.modules.material.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cinc.mdm.modules.material.entity.MdmMaterial;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: mdm_material
 * @Author: jeecg-boot
 * @Date: 2021-09-16
 * @Version: V1.0
 */
public interface MdmMaterialMapper extends BaseMapper<MdmMaterial> {

    List<String> selectMaterialCodeExists(@Param("materialCodeList") List<String> materialCodeList);

    int selectUseCount(@Param("materialId") String materialId);

    List<MdmMaterial> selectListByNameAndSpec(@Param("nameAndSpec") List<String> nameAndSpec);

    List<MdmMaterial> selectListByNameSpecFactory(@Param("nameSpecFactory") List<String> nameSpecFactory);
}
